x11: Stop using gdk_surface_maximize
authorMatthias Clasen <mclasen@redhat.com>
Sat, 29 Feb 2020 18:11:53 +0000 (13:11 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 11 Mar 2020 23:35:56 +0000 (19:35 -0400)
Just use the backend function directly.

gdk/x11/gdksurface-x11.c

index 2cd4252e29778404334fd20340da9017d8b6f642..411f0b5a6e08b3e27337a9d06723be8933def8cb 100644 (file)
@@ -3890,7 +3890,7 @@ check_maximize (MoveResizeData *mv_resize,
   y = mv_resize->moveresize_orig_y + (y_root - mv_resize->moveresize_y);
 
   if (y < 10)
-    gdk_surface_maximize (mv_resize->moveresize_surface);
+    gdk_x11_surface_maximize (mv_resize->moveresize_surface);
 }
 
 static void
@@ -3913,7 +3913,7 @@ check_unmaximize (MoveResizeData *mv_resize,
   dy = y_root - mv_resize->moveresize_y;
 
   if (ABS (dx) > 20 || ABS (dy) > 20)
-    gdk_surface_unmaximize (mv_resize->moveresize_surface);
+    gdk_x11_surface_unmaximize (mv_resize->moveresize_surface);
 }
 
 static void